package cn.hairui.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 留言表
 * </p>
 *
 * @author laoganbu
 * @since 2020-04-20
 */
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息编号
     */
    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 文章编号
     */
    @TableField("ARTICAL_ID")
    private Integer articalId;

    /**
     * 用户名
     */
    @TableField("ACCOUNT")
    private String account;

    /**
     * 留言内容
     */
    @TableField("CONTENT")
    private String content;

    /**
     * 留言时间
     */
    @TableField("MESSAGE_TIME")
    private String messageTime;

    /**
     * 状态
     */
    @TableField("STATUS")
    private String status;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getArticalId() {
        return articalId;
    }

    public void setArticalId(Integer articalId) {
        this.articalId = articalId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getMessageTime() {
        return messageTime;
    }

    public void setMessageTime(String messageTime) {
        this.messageTime = messageTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Message{" +
        "id=" + id +
        ", articalId=" + articalId +
        ", account=" + account +
        ", content=" + content +
        ", messageTime=" + messageTime +
        ", status=" + status +
        "}";
    }
}
